function append(append_from, append_to, form_id) {
	if ($("input[type=checkbox]:checked").length>0){
		$("#"+form_id).attr('action',URL_ROOT+"adm/"+append_from.substring(0,append_from.length-1)+"/append_"+append_from+"_to_"+append_to);
		$("#"+form_id).submit();
	}
	else{
		alert("You must select at least one "+append_from.substring(0,append_from.length-1)+" to perform this action!");
	}
}

function unlink(unlink_from, unlink_to, form_id) {
	if ($("input[type=checkbox]:checked").length>0){
		$("#"+form_id).attr('action',URL_ROOT+"adm/"+unlink_from.substring(0,unlink_from.length-1)+"/unlink_"+unlink_to+"_from_"+unlink_from);
		$("#"+form_id).submit();
	}
	else{
		alert("You must select at least one "+unlink_from.substring(0,unlink_from.length-1)+" to perform this action!");
	}
}